package vn.edu.saigontech.ncms.model.info;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import org.hibernate.annotations.OptimisticLockType;

import vn.edu.saigontech.ncms.model.BaseEntity;

@Entity
@org.hibernate.annotations.Entity(dynamicInsert = true, dynamicUpdate = true, optimisticLock = OptimisticLockType.ALL)
@Table(name = "ncms_receipt_info")
@SuppressWarnings("serial")
public class ReceiptInfo extends BaseEntity {
	
	public static final String HP = "HP";
	public static final String XL = "XL";
	public static final String SD = "SD";
	
	@Column(name = "name", nullable = false)
	private String name;

	@Column(name = "year", nullable = false)
	private int year;

	@Column(name = "sequence")
	private int value;
	
	public ReceiptInfo() {
	}
	
	public ReceiptInfo(String name, int year, int value) {
		this.name = name;
		this.year = year;
		this.value = value;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public int getYear() {
		return year;
	}

	public void setYear(int year) {
		this.year = year;
	}

	public int getValue() {
		return value;
	}

	public void setValue(int value) {
		this.value = value;
	}
}